<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var str1 = "";
			var str2 = '';
			var intObj = 0;
			var strs = [];
			var strs2 = new Array()
			var obj = {};
			var student = {
				name: "张三",
				age: 30,
				gender: '男'
			};
			student.name = "苏江明";
			
			function addObjToArray(obj,arrs){
				for(var i=0;i <arrs.length; i++){
					arrs[i] = obj;
				}
				console.log("arrs:",arrs);
			}
		</script>
	</head>
	<body>
		<button onclick="addObjToArray('{age:1,sex:0}',new Array(2))">Test</button>
	</body>
</html>
